//
//  NSString+Convenience.h
//  PCCategoriesDemo
//
//  Created by 宋鹏程 on 14-4-8.
//  Copyright (c) 2014年 宋鹏程. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface NSString (Empty)

+ (BOOL)isBlankString:(NSString *)string;

@end

@interface NSString (Convenience)

+ (instancetype)stringWithObject:(NSObject *)objc holdString:(NSString *)hString;
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+ (NSString *)getUUID;

@end


@interface NSString (Drawing)

- (NSMutableAttributedString *)attributedStringWithFont:(UIFont *)font LineSpacing:(CGFloat)lineSpacing;
- (CGSize)boundingRectWithFont:(UIFont *)font width:(CGFloat)width;
- (CGSize)boundingRectWithFont:(UIFont *)font width:(CGFloat)width lineSpacing:(CGFloat)lineSpacing;

@end



@interface NSString (ChineseToPinyin)

/*
 * 返回string对象是否全部是中文
 */
- (BOOL)isChinese;

/*
 * 返回中Chinese符串的拼音首字母(若string为English,返回首个字母的小写格式)
 * 若首字符即非Chinese又非English,返回'#'
 */
- (unichar)firstCase;

/*
 * 将中文转成拼音小写
 * 除'space','alpha'和'chinese'以外的任何字符都将被舍弃
 */
- (instancetype)toPinyin;

@end